/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package au.edu.swin.unilearn.tutorialGroup;

import au.edu.swin.unilearn.subject.Subject;
import au.edu.swin.unilearn.universitystaff.UniversityStaff;
import java.io.File;
import java.io.Serializable;

/**
 *
 * @author DidierLeung
 */
public class TutorialGroup implements Serializable
{
    private Integer activity_no;
    private UniversityStaff universityStaff;
    private Subject subject;
//    private List<Student> studentCollection;

    public TutorialGroup(Integer activity_no, Subject subject, UniversityStaff universityStaff)
    {
        this.activity_no = activity_no;
        this.subject = subject;
        this.universityStaff = universityStaff;
//        this.studentCollection = studentCollection;
        createTutorialGroupFolder();
    }

    private void createTutorialGroupFolder()
    {
        String folderURL = "Unilearn_Storage/" + subject.getSubject_code() + "/Submission/TutorialGroup_" + activity_no;
        File tutorialGroupFolder = new File(folderURL);
        if(!tutorialGroupFolder.exists())
        {
            tutorialGroupFolder.mkdir();
        }
    }
    
    public Integer getActivity_no()
    {
        return activity_no;
    }

    public void setActivity_no(Integer activity_no)
    {
        this.activity_no = activity_no;
    }

    public UniversityStaff getUniversityStaff()
    {
        return universityStaff;
    }

    public void setUniversityStaff(UniversityStaff universityStaff)
    {
        this.universityStaff = universityStaff;
    }

    public Subject getSubject()
    {
        return subject;
    }

    public void setSubject(Subject subject)
    {
        this.subject = subject;
    }

//    public List<Student> getStudentCollection()
//    {
//        return studentCollection;
//    }
//
//    public void setStudentCollection(List<Student> studentCollection)
//    {
//        this.studentCollection = studentCollection;
//    }
//    
//    public Student getStudent(String studentID)
//    {
////        for(int i=0; i<studentCollection.size(); i++)
////        {
////            Student s = studentCollection.get(i);
////            if(s.isStudentID(studentID))
////            {
////                return s;
////            }
////        }
//        return null;
//    }
}
